<div class="content">
<%=render :partial=>"breadcrumb"%>

<%= start_form_tag :action => 'apply_settings'%>

        <fieldset>
        <legend><%= _('Global settings')%></legend>
        <div class="form_cover">
            <span class="form_left"><label><%= _('Gallery title') -%></label></span>
            <span class="form_right"><%= text_field_tag  :gallery_name, params[:gallery_name],:class=>"combo_style"  %></span>
        </div>
        <div class="form_cover">
            <span class="form_left"><label><%= _('Choose language ')%></label></span>
            <span class="form_right"><%= select_tag :lang,options_for_select([[_('English'),'en'],[ _('Russian'),'ru']] ,params[:lang]),:class=>"combo_style"%></span>
        </div>
        <div class="form_cover">
            <span class="form_left"><label><%= _('Select scheme ')%></label></span>
            <span class="form_right"><%= select_tag :scheme,options_for_select( params[:schemes_list],params[:current_scheme]),:class=>"combo_style"%></span>
        </div>
        <div class="form_cover">
            <span class="form_left"><label><%= _('Tags\' cloud range ')%></label></span>
            <span class="form_right"><%= text_field_tag  :cloud_range, params[:cloud_range],:class=>"combo_style"  %></span>
        </div>
        <div class="form_cover">
            <span class="form_left"><label><%= _('Show login link ')%></label></span>
            <span class="form_right"><%= check_box_tag :need_login, "1",params[:need_login]%></span>
        </div>
        </fieldset>

        <fieldset>
        <legend><%= _('Personal info')%></legend>
        <div class="form_cover">
            <span class="form_left"><label for="log"><%= _('Login') %></label></span>
            <span class="form_right"><%= text_field_tag :log, params[:log],:class=>"combo_style"%></span>
        </div>
        <div class="form_cover">
            <span class="form_left"><label for="password" align=left><%= _('New password') %></label></span>
            <span class="form_right"><%= password_field_tag :password, params[:password],:class=>"combo_style" %></span>
        </div>
        <div class="form_cover">
            <span class="form_left"><label for="password_confirmation"><%= _('Confirm new password') %></label></span>
                <span class="form_right">  <%= password_field_tag :password_confirmation, params[:password_confirmation],:class=>"combo_style"%></span>
        </div>
        <div class="form_cover">
           <span class="form_left"><label for="name"><%= _('Name') %></label></span>
           <span class="form_right"><%= text_field_tag :name, params[:name],:class=>"combo_style"%></span>
        </div>
        <div class="form_cover">
            <span class="form_left"><label for="surname"><%= _('Surname') %></label></span>
            <span class="form_right"><%= text_field_tag :surname, params[:surname],:class=>"combo_style"%></span>
        </div>
        <div class="form_cover">
            <span class="form_left"><label for="email"><%= _('Email') %></label></span>
            <span class="form_right"><%= text_field_tag :email, params[:email],:class=>"combo_style"%></span>
        </div>
       </fieldset>
       <label>&nbsp;</label> 
       <div class="buttons"> 
        <%= submit_tag _("Apply") %>
        <%= button_to_function "Cancel" do |page|
         page.redirect_to :controller => "admin", :action => "gallery_settings"
         end
        %>
        <%= end_form_tag %>
</div>